package com.ssmk.module.shoppingcar.contract;

import com.ssmk.base.BasePresenter;
import com.ssmk.base.BaseView;

/**
 * Created by Rex on 2017/9/8.
 */

public class AllOrderContract {

    public interface View<T> extends BaseView<T> {

        void showToast(String text);

        void cancelOrderResult(String orderId, String cancelFlag);

        void deleteOrderResult(String orderId);
    }

    public interface Presenter extends BasePresenter {

        void cancelOrder(String orderId, String flag);

        void deleteOrder(String orderId);

        void queryAllOrder(int page);

        void waitPayOrder(int page);

        void waitSendOrder(int page);

        void waitGetOrder(int page);

        void saleAfterOrder(int page);

        void stop();
    }

    public interface OnOrderButtonListener{

        void cancelOrder(String orderId);

        void deleteOrder(String orderId);
    }
}
